#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main(void)
{
	int i = -1;
	char ch[225]{};
	do
	{
		i++;
		scanf("%c", &ch[i]);
	} while (ch[i] != '\n');
	for (i; i >= 0; i--)
		printf("%c", ch[i]);

	return 0;
}